<?php

namespace Application\Model;

use Zend\Form\Annotation;

/**
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 * @Annotation\Name("Sejour")
 */
class Sejour {
	public $id;
	public $titre;
	public $agenceId;
	public $agenceLibelle;
	public $agenceImageURL;	
	public $duree;
	public $prix;
	public $resume;
	public $description;
	public $imageUrl;
	public $paysId;
	public $regionId;
	public $activiteId;
	public $niveauTechnique;
	public $niveauPhysique;
	public $niveauConfort;
	public $typeSejoursId;
	public $accompagnement;
	public $departVille;
	public $arriveeVille;
	public $departGPS;
	public $arriveeGPS;
	public $ficheTechniqueUrl;
	public $code;
	public $pageReservation;
	public $compteurRedirectionAgence;
	public $thematiques;

	public function exchangeArray($data)
	{
		$this->id = (isset($data['id'])) ? $data['id'] : null;
		$this->titre = (isset($data['titre'])) ? $data['titre'] : null;
		$this->agenceId = (isset($data['agenceId'])) ? $data['agenceId'] : null;
		$this->agenceLibelle = (isset($data['agenceLibelle'])) ? $data['agenceLibelle'] : null;
		$this->agenceImageURL = (isset($data['agenceImageURL'])) ? $data['agenceImageURL'] : null;
		$this->duree = (isset($data['duree'])) ? intval($data['duree']) : null;
		$this->prix = (isset($data['prix'])) ? intval($data['prix']) : null;
		$this->resume = (isset($data['resume'])) ? $data['resume'] : null;
		$this->description = (isset($data['description'])) ? $data['description'] : null;
		$this->imageUrl = (isset($data['imageUrl'])) ? $data['imageUrl'] : null;
		$this->paysId = (isset($data['paysId'])) ? $data['paysId'] : null;
		$this->regionId = (isset($data['regionId'])) ? $data['regionId'] : null;
		$this->activiteId = (isset($data['activiteId'])) ? $data['activiteId'] : null;
		$this->niveauTechnique = (isset($data['niveauTechnique'])) ? $data['niveauTechnique'] : null;
		$this->niveauPhysique = (isset($data['niveauPhysique'])) ? $data['niveauPhysique'] : null;
		$this->niveauConfort = (isset($data['niveauConfort'])) ? $data['niveauConfort'] : null;
		$this->typeSejoursId = (isset($data['typeSejoursId'])) ? $data['typeSejoursId'] : null;
		$this->accompagnement = (isset($data['accompagnement'])) ? $data['accompagnement'] : null;
		$this->departVille = (isset($data['departVille'])) ? $data['departVille'] : null;
		$this->arriveeVille = (isset($data['arriveeVille'])) ? $data['arriveeVille'] : null;
		$this->departGPS = (isset($data['departGPS'])) ? $data['departGPS'] : null;
		$this->arriveeGPS = (isset($data['arriveeGPS'])) ? $data['arriveeGPS'] : null;
		$this->ficheTechniqueUrl = (isset($data['ficheTechniqueUrl'])) ? $data['ficheTechniqueUrl'] : null;
		$this->code = (isset($data['code'])) ? $data['code'] : null;
		$this->pageReservation = (isset($data['pageReservation'])) ? $data['pageReservation'] : null;
		$this->compteurRedirectionAgence = (isset($data['compteurRedirectionAgence'])) ? $data['compteurRedirectionAgence'] : 0;
		$this->thematiques = (isset($data['thematiques'])) ? $data['thematiques'] : null;
	}
}
